var express = require('express');
var router = express.Router();
var positionController = require('../controller/positionController');
const upload = require('../middleware/upload');
/* GET users listing. */
router.post('/', upload, positionController.save)
	.delete('/',positionController.del)
	.get('/',positionController.find)
	.put('/',positionController.update)

router.get('/findOne', positionController.findOne);
router.post('/update',upload,positionController.update);

module.exports = router;
